package creational.builder;

/**
 * @ClassName: HPComputerBuilder
 * @Description: 具体生成器
 * @Author: liu-hao
 * @Date: 2023-05-19 23:06
 * @Version: 1.0
 **/
public class HPComputerBuilder extends ComputerBuilder {
    @Override
    public ComputerBuilder buildMaster() {
        computer.setMaster("i7,16g,512SSD,1060");
        return this;
    }

    @Override
    public ComputerBuilder buildScreen() {
        computer.setScreen("1080p");
        return this;
    }

    @Override
    public ComputerBuilder buildKeyboard() {
        computer.setKeyboard("cherry 青轴机械键盘");
        return this;
    }

    @Override
    public ComputerBuilder buildMouse() {
        computer.setMouse("MI 鼠标");
        return this;
    }

    @Override
    public ComputerBuilder buildAudio() {
        computer.setAudio("飞利浦 音响");
        return this;
    }
}
